﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows;
using System.Windows.Media;

namespace WPF_TY_UI
{
    public class TextBoxExtensions : BaseExtend
    {
        #region 附加属性 Header
        public static object GetHeader(DependencyObject obj) { return (object)obj.GetValue(HeaderProperty); }
        public static void SetHeader(DependencyObject obj, object value) { obj.SetValue(HeaderProperty, value); }
        public static readonly DependencyProperty HeaderProperty = DependencyProperty.RegisterAttached("Header", typeof(object), typeof(ButtonExtensions), new PropertyMetadata(default(object)));
        #endregion

        //#region 附加属性 CornerRadius
        //public static CornerRadius GetCornerRadius(DependencyObject obj) { return (CornerRadius)obj.GetValue(CornerRadiusProperty); }
        //public static void SetCornerRadius(DependencyObject obj, CornerRadius value) { obj.SetValue(CornerRadiusProperty, value); }
        //public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.RegisterAttached("CornerRadius", typeof(CornerRadius), typeof(ButtonExtensions), new PropertyMetadata(default(CornerRadius)));
        //#endregion

        //#region 附加属性 HoverBackground
        //public static SolidColorBrush GetHoverBackground(DependencyObject obj) { return (SolidColorBrush)obj.GetValue(HoverBackgroundProperty); }
        //public static void SetHoverBackground(DependencyObject obj, SolidColorBrush value) { obj.SetValue(HoverBackgroundProperty, value); }
        //public static readonly DependencyProperty HoverBackgroundProperty = DependencyProperty.RegisterAttached("HoverBackground", typeof(SolidColorBrush), typeof(ButtonExtensions), new PropertyMetadata(default(SolidColorBrush)));
        //#endregion

        //#region 附加属性 HoverForeground
        //public static SolidColorBrush GetHoverForeground(DependencyObject obj) { return (SolidColorBrush)obj.GetValue(HoverForegroundProperty); }
        //public static void SetHoverForeground(DependencyObject obj, SolidColorBrush value) { obj.SetValue(HoverForegroundProperty, value); }
        //public static readonly DependencyProperty HoverForegroundProperty = DependencyProperty.RegisterAttached("HoverForeground", typeof(SolidColorBrush), typeof(ButtonExtensions), new PropertyMetadata(default(SolidColorBrush)));
        //#endregion

        //#region 附加属性 PressBackground
        //public static SolidColorBrush GetPressBackground(DependencyObject obj) { return (SolidColorBrush)obj.GetValue(PressBackgroundProperty); }
        //public static void SetPressBackground(DependencyObject obj, SolidColorBrush value) { obj.SetValue(PressBackgroundProperty, value); }
        //public static readonly DependencyProperty PressBackgroundProperty = DependencyProperty.RegisterAttached("PressBackground", typeof(SolidColorBrush), typeof(ButtonExtensions), new PropertyMetadata(default(SolidColorBrush)));
        //#endregion

        //#region 附加属性 PressForeground
        //public static SolidColorBrush GetPressForeground(DependencyObject obj) { return (SolidColorBrush)obj.GetValue(PressForegroundProperty); }
        //public static void SetPressForeground(DependencyObject obj, SolidColorBrush value) { obj.SetValue(PressForegroundProperty, value); }
        //public static readonly DependencyProperty PressForegroundProperty = DependencyProperty.RegisterAttached("PressForeground", typeof(SolidColorBrush), typeof(ButtonExtensions), new PropertyMetadata(default(SolidColorBrush)));
        //#endregion

        //#region 附加属性 DisableForeground
        //public static SolidColorBrush GetDisableForeground(DependencyObject obj) { return (SolidColorBrush)obj.GetValue(DisableForegroundProperty); }
        //public static void SetDisableForeground(DependencyObject obj, SolidColorBrush value) { obj.SetValue(DisableForegroundProperty, value); }
        //public static readonly DependencyProperty DisableForegroundProperty = DependencyProperty.RegisterAttached("DisableForeground", typeof(SolidColorBrush), typeof(ButtonExtensions), new PropertyMetadata(default(SolidColorBrush)));
        //#endregion


    }
}
